package com.ctvit.framework.log;

import java.lang.reflect.Method;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.aop.AfterReturningAdvice;

public class LogAfterAdvice implements AfterReturningAdvice {
	protected final Log log = LogFactory.getLog(getClass());
	 public void afterReturning(Object returnObj, 
			 					Method method, 
			 					Object[] args,
			 					Object targetObj) throws Throwable{
		 log.info(returnObj==null?"":returnObj.getClass()+":return from "+method.getName());
	 }
}
